package com.vertx.firstvertx;

import com.vertx.util.Runner;
import io.vertx.core.AbstractVerticle;


public class SleepVerticle extends AbstractVerticle {

	public static void main(String[] args) {

		Runner.runExample(SleepVerticle.class);

	}

	@Override
	public void start() throws Exception {

		Thread.sleep(2000);

//    vertx.createHttpServer().requestHandler(req -> {
//      req.response()
//        .putHeader("content-type", "text/plain")
//        .end("Hello from Vert.x!");
//    }).listen(8888);
		System.out.println("startup SleepVerticle!!!");
	}
}
